package com.fen.demo011;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author : lrf
 * @description :
 * @tip :
 * @date : 2019/3/22
 */
public class App {

    public static void main(String[] args) {

//        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:demo011/parent-context.xml");
        ApplicationContext context = new AnnotationConfigApplicationContext(User11Config.class);

        User11 user11 = context.getBean("user11", User11.class);

        System.out.println("user11 = " + user11);
    }
}
